<?php
include( 'init.php' );
if(!$_REQUEST['text']){
	$error_message = '信息为空';
	json_message ( 'error', $error_message );
	die ();
}
$text = urldecode($_REQUEST ['text']);
$c = new WeiboClient( WB_AKEY , WB_SKEY , $_SESSION['last_key']['oauth_token'] , $_SESSION['last_key']['oauth_token_secret']  );
$ip = $_SERVER['REMOTE_ADDR'];
$result = $c->update($text,$ip);
echo json_encode($Result);
die();
